<template>
  <div class="error">
    <!-- <h1>抱歉~您查找的页面暂不存在喔~~~</h1> -->
    <div class="error_title">
      <div class="error_title_p">404</div>
      <div class="error_title_return" @click="gotoHomeFn">
        <img src="../assets/left.png" />
      </div>
    </div>
    <div class="error_content">
      <p>抱歉~您查找的页面暂时不存在喔~~~</p>
    </div>
    <ReturnComponentVue />
  </div>
</template>

<style lang="less" scoped>
.error_title {
  padding: 15px;

  .error_title_p {
    color: red;
    font-weight: 700;
    text-align: center;
  }

  .error_title_return {
    position: fixed;
    top: 15px;
    left: 5px;

    img {
      width: 30px;
    }
  }
}
.error_content {
  margin: 120px auto;

  p {
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    text-align: center;
  }
}
.error_footer {
  color: orange;
  font-size: 32px;
  font-weight: 700;
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 20px;
}
</style>

<script>
import ReturnComponentVue from "../components/ReturnComponent.vue";

export default {
  name: "ErrorView",
  data() {
    return {
      startX: 0,
      moveX: 0,
      X: 0,
    };
  },
  components: {
    ReturnComponentVue,
  },
  methods: {
    gotoHomeFn() {
      return this.$router.push({ path: "/" }).catch(() => {});
    },
  },
};
</script>